import axios from 'axios';
async function flowdata(ck) {
// 构建请求体
// console.log(ck)
let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://m.client.10010.com/servicequerybusiness/operationservice/queryOcsPackageFlowLeftContentRevisedInJune',
  headers: { 
    'accept': 'application/json, text/plain, */*', 
    'content-type': 'application/x-www-form-urlencoded', 
    'accept-encoding': 'gzip, deflate', 
    'accept-language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7', 
    'cookie': ck || ''
  }
};
// 发送请求
const response = await axios.request(config)

// 解析响应数据
const data = response.data;

// 转换为JSON字符串（对应原PHP的JSON处理）
return data;
}


// console.log(await flowdata())
export { flowdata }; // 注意：函数名必须和定义完全一致，不能拼写错